//
//  YLInvestmentCertificateModel.m
//  YLFinanceService
//
//  Created by she1323 on 2017/10/26.
//  Copyright © 2017年 she1323. All rights reserved.
//  投资券

#import "YLInvestmentCertificateModel.h"

@implementation YLInvestmentCertificateModel


- (void)setEffectiveDate:(NSString *)effectiveDate
{
    _effectiveDate = effectiveDate;
    
    if (effectiveDate.length > 10) {
        _effectiveDate = [effectiveDate substringToIndex:10];
    }
    
}

- (void)setExpirationDate:(NSString *)expirationDate
{
    _expirationDate = expirationDate;
    if (expirationDate.length > 10) {
        _expirationDate = [expirationDate substringToIndex:10];
    }
}


@end

@implementation YLInvestmentCertificateItem

+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
{
    return @{@"items" : [YLInvestmentCertificateModel class]};
}

@end
